// Hide icons on the Desktop

procedure TForm1.Button2Click(Sender: TObject);
begin
  ShowWindow(DesktopListViewHandle, SW_HIDE);
end;


procedure TForm1.FormCreate(Sender: TObject);
begin
  DesktopListViewHandle:=FindWindow('ProgMan', nil);
  DesktopListViewHandle:=GetWindow(DesktopListViewHandle, GW_CHILD);
  DesktopListViewHandle:=GetWindow(DesktopListViewHandle, GW_CHILD);
end;

// Show icons on the Desktop

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowWindow(DesktopListViewHandle, SW_SHOW);
end;
